/**
 * 
 */
package org.vsg.stock.basic.service;

import java.util.Map;

import org.vsg.common.biz.exception.ServiceException;
import org.vsg.stock.core.kline.DailyKLineStock;

/**
 * this manager help to provide some util function dependent handle 
 * 
 * @author Bill Vison
 *
 */
public interface StockBusinessHelperManager {
	
	/**
	 * get blur price of the code 
	 * @param price
	 * @param type
	 * @param stockCode
	 * @return
	 */
	double getStockBlurLimitedPrice(double price, BlurRangeType type , String stockCode) ;
	
	/**
	 * check the blure limited price 
	 * diff = price compared - price standard
	 * @param price
	 * @param diff
	 * @param stockCode
	 * @return
	 */
	boolean checkBlurLimited(double price , double diff , String stockCode);
	
	
	/**
	 * refere kline
	 * @param kline
	 * @return
	 */
	Map<Double,String> mergeToPriceMap(DailyKLineStock kline , String stockCode) throws ServiceException;
	

	public enum BlurRangeType {
		MAX , MIN
	}
	
}
